package com.shopping_back.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 风控日志表
 * </p>
 *
 * @author Jack
 * @since 2025-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("risk_log")
public class RiskLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 风控ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 操作类型
     */
    private String actionType;

    /**
     * 设备指纹
     */
    private String deviceFingerprint;

    /**
     * 风险等级(1低 2中 3高)
     */
    private Boolean riskLevel;

    /**
     * 记录时间
     */
    private LocalDateTime logTime;


}
